/* ---------------------------------------------------------------------------
** package.h
** 	The different structs decompose the received data package. 
**      We use structures because the vision team did not have 
**	the balls to do it with class(es).
**
** Author: Stijn Vinck & Roel Postelmans
** -------------------------------------------------------------------------*/ 
#ifndef PACKAGE_H
#define PACKAGE_H

/*!  \struct Info
 	 \brief struct met de coordinaten van robot, doel en garage
*/
typedef struct Info  {
   int robx;
   int roby;
   int robhoek;
   int doelx;
   int doely;
   int garx;
   int gary;
} Info;

/*!  \struct Udp_header
 	 \brief struct met de info uit de UDP header
*/
typedef struct Udp_header  {
   unsigned short int udph_srcport;
   unsigned short int udph_destport;
   unsigned short int udph_len;
   unsigned short int udph_chksum;
} Udp_header;

/*!  \struct Udp_package
 	 \brief struct met de Info structs van de 2 groepen
*/
typedef struct Udp_package  {
   Udp_header header;
   int groep_a;
   Info info_a;
   int groep_b;
   Info info_b;
} Udp_package;

/*!  \struct Package
 	 \brief Struct met het volledige UDP pakket
*/
typedef struct Package  {
   int nr;	
   Udp_package *udp_package;
}  Package;

#endif
